package com.txg._01;

import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入一个三位数：");
        int num = scan.nextInt();

        int hun = num/100;
        int ten = (num%100)/10;
        int unit = (num%10);
        System.out.println("百："+hun);
        System.out.println("十："+ten);
        System.out.println("个："+unit);
    }
}
